<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    <input type="hidden" id="c-id" value="{$row.id}">
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Order_no')}:</label>
        <div class="col-xs-12 col-sm-8">
            <label class="control-label">{$row.order_no|htmlentities}</label>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Pay_type')}:</label>
        <div class="col-xs-12 col-sm-8">
            <label class="control-label">{$row.pay_type|htmlentities}</label>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Money')}:</label>
        <div class="col-xs-12 col-sm-8">
            <label class="control-label">&yen;{$row.money|htmlentities}</label>
        </div>
    </div>
    {if $row.addons}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Addons')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group" style="width: 98%;">
              <input id="c-addons" class="form-control" size="50" name="row[addons]" type="text" value="{$row.addons}" readonly>
              <div class="input-group-addon no-border no-padding hidden"> <span>
                <button type="button" id="plupload-addons" class="btn btn-danger plupload" data-input-id="c-addons" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="true" data-preview-id="p-addons"><i class="fa fa-upload"></i> {:__('Upload')}</button>
                </span> </div>
            </div>
            <ul class="row list-inline plupload-preview" id="p-addons">
            </ul>
        </div>
    </div>
    {/if}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Remarks')}:</label>
        <div class="col-xs-12 col-sm-8">
            <label class="control-label">{$row.remarks|htmlentities}</label>
        </div>
    </div>

    {if $row.state == 0}
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="button" class="btn btn-danger btn-embossed" id="js_cancel">{:__('作废收款记录')}</button>
        </div>
    </div>
    {/if}
</form>


<!-- editModal -->
<div class="modal fade" id="editModal" tabindex="-1" role="dialog" aria-labelledby="editModalLabel" data-backdrop="static">
  <div class="modal-dialog" role="document">
    <form id="modal-form" class="form-horizontal" role="modalform" data-toggle="validator" method="POST" action="">
      <input type="hidden" id="m-event">
      <div class="modal-content">
        <div class="modal-header">
          <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
          <h4 class="modal-title" id="editModalLabel">作废预定</h4>
        </div>
        <div class="modal-body">
          <div class="col-sm-12">
            <div class="form-group">
              <label class="control-label">理由:</label>
              <textarea class="form-control" id="c-cancelRemarks" rows="3" style="width:98%;"></textarea>
            </div>
          </div>
        </div>
        <div class="modal-footer">
          <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
          <button type="button" class="btn btn-primary">确认提交</button>
        </div>
      </div>
    </form>
  </div>
</div>